package org.darkforest.listener;

import org.springframework.context.ApplicationContext;

/**
 * Created by Justin on 15/1/18.
 */
public class SpringContextHolder {
    private ApplicationContext context;
    private static SpringContextHolder holder = new SpringContextHolder();

    private SpringContextHolder() {

    }

    public static SpringContextHolder getContextHolder() {
        return holder;
    }

    public ApplicationContext getContext() {
        return context;
    }

    public void setContext(ApplicationContext context) {
        this.context = context;
    }
}
